﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using Arizu.Repository;

namespace AiRiZu.User
{
    public partial class Vouchersinvite : Common
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void SendEmail_Click(object sender, EventArgs e)
        {
            string str = Request.Form["emailAddr"].ToString();
            string[] emailAdds = str.Split(',');

            SmtpClient client = new SmtpClient("smtp.gmail.com", 25);

            foreach (string item in emailAdds)
            {
                if (string.IsNullOrEmpty(item))
                {
                    continue;
                }

                Notification.SendEmail(item, "诚挚邀请您加入爱日租", Request.Form["mailBody"].ToString());
            }
        }
    }
}
